import { art } from "../prefix";
let artList = [
  {
    name: "artList",
    url: art + "/art",
    method: "GET",
    // loading: false
  },
  {
    name: "artDesc",
    url: art + "/art/:data_id",
    method: "GET",
  },
  // 获取艺术家视频列表
  {
    name: "getArtVideoList",
    url: art + "/art_video",
    method: "GET",
  },
  // 创建艺术家视频
  {
    name: "createArtInfo",
    url: art + "/art_video",
    method: "POST",
  },
  // 上传艺术家视频
  {
    name: "uploadArtVideo",
    url: art + "/art_video/:data_id",
    method: "POST",
  },
  // 通过ID获取艺术家视频
  {
    name: "getArtInfoByID",
    url: art + "/art_video/:data_id",
    method: "GET",
  },
  // 创建艺术作品
  {
    name: "createArtWorks",
    url: art + "/works",
    method: "POST",
  },
  // 查询艺术作品
  {
    name: "getWorksList",
    url: art + "/works",
    method: "GET",
  },
  // 根据id查询艺术作品
  {
    name: "getWorkInfo",
    url: art + "/works/:data_id",
    method: "GET",
  },
  // 更新艺术作品
  {
    name: "updateArtWorks",
    url: art + "/works/:data_id",
    method: "POST",
  },
  // 删除艺术作品
  {
    name: "deleteArtWorks",
    url: art + "/works/:data_id",
    method: "delete",
  },
  {
    name: "workRecomment",
    url: art + "/works",
    method: "GET"
  }
];

export default artList;
